package com.lrabbit.page;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class PagingResult {

    @ApiModelProperty(value = "当前页码")
    private int pageIndex;

    @ApiModelProperty(value = "每页条数")
    private int pageSize;

    @ApiModelProperty(value = "总记录数")
    private int total;

    public PagingResult() {
        super();
    }

    public PagingResult(int pageIndex, int pageSize, int total) {
        this.pageIndex = pageIndex;
        this.pageSize = pageSize;
        this.total = total;
    }

    @Override
    public String toString() {
        return "Paging{" +
                "pageIndex=" + pageIndex +
                ", pageSize=" + pageSize +
                ", total=" + total +
                '}';
    }

}
